const routes = [
  {
    // path不允许为空
    path: '/*',
    // 严格路由匹配模式
    exact: true,
    component: '../layouts/index',
    routes: [
      // 基座中访问子应用提示
      {
        path: '/noAuth',
        component: '../pages/NoAuth/index',
      },
      {
        path: '/',
        redirect: '/home',
      },
      // 首页报表
      {
        name: '首页',
        path: '/home',
        component: '../pages/Home/index',
      },
      // 交易管理
      {
        name: '支付交易',
        path: '/payment-history',
        component: '../pages/transaction/PaymentHistory/index',
      },
      {
        name: '转账交易',
        path: '/transfer-record',
        component: '../pages/transaction/TransferRecord/index',
      },
      {
        name: '充值交易',
        path: '/recharge-record',
        component: '../pages/transaction/RechargeRecord/index',
      },
      {
        name: '提现交易',
        path: '/withdraw-record',
        component: '../pages/transaction/WithdrawRecord/index',
      },
      {
        name: '提现审批',
        path: '/withdraw-apply',
        component: '../pages/transaction/WithdrawApply/index',
      },
      {
        name: '积分交易',
        path: '/grant-integral',
        component: '../pages/transaction/GrantIntegral/index',
      },
      {
        name: '积分兑换',
        path: '/release-record',
        component: '../pages/transaction/HPCReleaseRecord/index',
      },
      {
        name: '折扣回馈',
        path: '/discount-record',
        component: '../pages/transaction/DiscountRecord/index',
      },
      // 汇率管理报表
      {
        name: '汇率管理',
        path: '/exchange-Rate',
        component: '../pages/ExchangeRate/index',
      },
      // 运营管理
      {
        name: '费率管理',
        path: '/withdrawal-rata',
        component: '../pages/operationalParameters/WithdrawalRata/index',
      },
      {
        name: '运营投放',
        path: '/launch-management',
        component: '../pages/operationalParameters/LaunchManagement/index',
      },
      // 积分规则
      {
        name: '积分规则',
        path: '/points-distribution',
        component: '../pages/PointsDistribution/index',
      },
      // 商户管理
      {
        name: '商户管理',
        path: '/merchant',
        component: '../pages/merchantManagement/Merchant/index',
      },
      {
        name: '折扣配置',
        path: '/discount-configuration',
        component: '../pages/DiscountConfiguration/index',
      },
      {
        name: '账户信息',
        path: '/merchant-asset-account',
        component: '../pages/merchantManagement/MerchantAssetAccount/index',
      },
      // 会员管理
      {
        name: '会员管理',
        path: '/member',
        component: '../pages/memberManagement/Member/index',
      },
      {
        name: '资产账户信息',
        path: '/member-asset-account',
        component: '../pages/memberManagement/memberAssetAccount/index',
      },
      {
        name: '积分账户信息',
        path: '/member-points-account',
        component: '../pages/memberManagement/memberPointsAccount/index',
      },
      // 安全管理
      {
        name: '交易密码重置',
        path: '/trading-password',
        component: '../pages/password/TradingPassword/index',
      },
      {
        name: '登录密码重置',
        path: '/login-password',
        component: '../pages/password/LoginPassword/index',
      },
      // 报表管理
      {
        name: '运营视图总览',
        path: '/operational-view',
        component: '../pages/reportForm/OperationalView/index',
      },
      {
        name: '交易视图总览',
        path: '/transaction-view',
        component: '../pages/reportForm/TransactionView/index',
      },
      // 平台账户信息
      {
        name: '平台账户信息',
        path: '/platform-accountInfo',
        component: '../pages/PlatformAccountInfo/index',
      },
      { name: '404', path: '/*', component: '../pages/404', exact: false },
    ],
  },
];
export default routes;
